Optimal control strategy of the extended-range electric vehicle based on dynamic programming