Bacterial response to sharp geochemical gradients caused by acid mine drainage intrusion in a terrace: Relevance of C, N, and S cycling and metal resistance.