XPS study of the nitrides, oxides and oxynitrides of titanium