Topology Control In Energy-Harvesting Wireless Sensor Networks