Mechanistic study of the intramolecular conversion of maltose to trehalose by Thermus caldophilus GK24 trehalose synthase.