First principles calculations on the influence of solute elements and chlorine adsorption on the anodic corrosion behavior of Mg (0001) surface