Initial oxidation of metals: thermodynamic aspects