Theory of core photoemission spectra in CeO2