Charge-transfer molecular dynamics