Quantifying the impact of dynamic plant-environment interactions on metabolic regulation.