Simulating ligand binding and unbinding with accelerated molecular dynamics