Resonant Raman scattering versus luminescence