Modeling the Kinetics of Sulfate Reduction and Sulfide Oxidation Involved in Treating Mining Wastewater Using the Membrane Biofilm Reactor (MBfR).