Sensor-mission assignment in wireless sensor networks with energy harvesting