Core level spectroscopy of heavy-fermion Ce compounds