Oxidation kinetics and its influence on the near-surface effect of diffusion