The role of nonadiabatic coupling and sudden polarization in the photoisomerization of olefins.