Horizontal gene transfer among bacteria in terrestrial and aquatic habitats as assessed by microcosm and field studies