Optimization of the operation of packed bed bioreactor to improve the sulfate and metal removal from acid mine drainage.