Molecular dynamics with quantum transitions for proton transfer: Quantum treatment of hydrogen and donor-acceptor motions