A Framework for the Estimation and Validation of Energy Consumption in Wireless Sensor Networks. (8th July 2015)