Leaf carbon assimilation in a water-limited world