Effects of heavy metals on microbial diversity and bacterial metal resistance by