Towards understanding a molecular switch mechanism: thermodynamic and crystallographic studies of the signal transduction protein CheY.