Nonadiabatic Photodynamics of a Retinal Model in Polar and Nonpolar Environment