Influence of pH on mineral speciation in a bioreactor simulating acid mine drainage