How Does Lithium Plating Cause Capacity Loss in Lithium-ion Batteries