Bioremediation of arsenic in contaminated terrestrial and aquatic environments