Characterization of NiO by XPS