Holistic energy management with uProcessor co-optimization in fully integrated battery-less IoTs