Estimating the rate of photorespiration in leaves