Boundary layer budgets for regional estimates of scalar fluxes