Adaptation of microbial communities to environmental arsenic and selection of arsenite-oxidizing bacteria from contaminated groundwaters