Direct estimation of stomatal resistance for meteorological applications