Energy-optimal off-design power management for hybrid-electric aircraft