Real-Time Predictive Optimization for Energy Management in a Hybrid Electric Vehicle