Algorithms for harvested energy prediction in batteryless wireless sensor networks