Chemical aspects of acid mine drainage