Trajectory surface-hopping dynamics of light-driven imine switches