Thermal oxidation of oxynitride perovskites in different atmospheres