Optimal Plug-in Electric Vehicle Charging in Multi-Period Power Markets: A Stochastic Dynamic Programming Approach