Topology Control in Energy-harvesting Wireless Sensor Networks