Final state effects for the core-level XPS spectra of NiO