Insights on the evolution of trehalose biosynthesis