Bosonization theory of the resonant Raman spectra of quantum wires