Regulation of the plant metabolic network during stress