Role of dynamics in ligand-protein interactions: modelling of binding to the pregnane x receptor