An improved theory for calculating leaf gas exchange more precisely accounting for small fluxes