Structure of trehalose synthase