An Electrochemical Model of Lithium Plating and Stripping in Lithium Ion Batteries