Comparative performance of anaerobic attached biofilm and granular sludge reactors for the treatment of model mine drainage wastewater containing selenate, sulfate and nickel