Dynamical simulation of rate constants in protein-ligand interactions.