Graph-based Signal Restoration for Energy Harvesting Wireless Sensor Networks