Purcell factor and local intensity enhancement in surface-enhanced Raman scattering