Surface hopping dynamics using a locally diabatic formalism: charge transfer in the ethylene dimer cation and excited state dynamics in the 2-pyridone dimer.