Mechanism of phosphatase activity in the chemotaxis response regulator CheY.