A stochastic geometry analysis of cooperative wireless networks powered by energy harvesting