Dynamic reconfiguration in sensor networks with regenerative energy sources