Reliable method for assessing the COD mass balance of a submerged anaerobic membrane bioreactor (SAMBR) treating sulphate-rich municipal wastewater.