Resonant light scattering mediated by excitonic polaritons in semiconductors