Environmental effects on radiative rate constants with applications to linear polyenes