The mechanism of anodic oxidation