Text this: Optimal energy management for hybrid electric aircraft