Approximate Dynamic Programming Applied to Parallel Hybrid Powertrains