Infrared degenerate four-wave mixing and resonance-enhanced stimulated Raman scattering in molecular gases and free jets