Treatment of high ammonia wastewater with an anaerobic baffled reactor and investigation of the generation of potential membrane foulants.