Characterization of nitride coatings by XPS