Algorithms for Harvested Energy Prediction in Batteryless Wireless Sensor Networks