Online Optimization of Gear Shift and Velocity for Eco-Driving using Adaptive Dynamic Programming