Study of Key Factors Influencing Electrochemical Reversibility of Magnesium Deposition and Dissolution