Surface hopping trajectory simulations with spin-orbit and dynamical couplings