Mechanistic constraints on the trade-off between photosynthesis and respiration in response to warming