A generalized electrodynamics model for surface enhanced Raman scattering and enhanced/quenched fluorescence calculations