4f excitations in Ce Kondo lattices studied by resonant inelastic x-ray scattering