Theory of the two peak photoemission spectra in cerium compounds