Sampling protein motion and solvent effect during ligand binding.