Soil moisture controls on water vapor and carbon fluxes in semi-arid regions