Protein stability induced by ligand binding correlates with changes in protein flexibility