Theory of resonant X-ray emission spectra in Ce compounds