Surface effects in the Ni 2p x-ray photoemission spectra of NiO