Stoichiometric analysis of the energetics and metabolic impact of photorespiration in C3 plants