Time-dependent quantum-mechanical methods for molecular dynamics