Density-matrix evaluation of the enhancement to resonant Raman scattering and fluorescence of molecules confined in metallic nanoparticle dimers