A Mechanism for the Anodic Dissolution of Magnesium