Core-hole-electron interaction in x-ray Raman scattering