Resonant Raman scattering and luminescence of excitonic polaritons