Real-Time Optimal Energy Management of Electrified Powertrains with Reinforcement Learning