Adaptation to dietary conditions by trehalose metabolism in Drosophila