Statistics for Adaptive energy management for solar energy harvesting wireless sensor nodes