Structural determinants for ligand binding and catalysis of triosephosphate isomerase.