Electronic diabatic states: definition, computation and applications.