On the mechanism of the oxidation of metals