Genomic adaptation underlies nutrient-driven reprogramming in the malaria-causing parasite