Wireless Sensor Networks with Energy Harvesting