Robust energy harvesting, storage, and management