Synthesis of a superconducting oxide by oxidation of a metallic precursor