Text this: Nested-Level Optimization of a Permanent Magnet Synchronous Motor Embedded in Energy Management for Hybrid Electric Vehicles.