Dam construction alters function and community composition of diazotrophs in riparian soils across an environmental gradient