An Adaptive Energy-Management Framework for Sensor Nodes with Constrained Energy Scavenging Profiles. (8th October 2013)