Ignition and extinction of surface and homogeneous oxidation of NH3 and CH4