Role of adiabatic pathways in the photoisomerization of aromatic olefins