Proton transfer in the mechanism of triosephosphate isomerase.