Relation between the oxidation mechanism of nickel, the microstructure and mechanical resistance of NiO films and the nickel purity: I. Oxidation mechanism and microstructure of NiO films