Oxidation mechanism of titanium nitride in oxygen