Energy harvesting-aware design of wireless networks