Treatment of coal gasification wastewater by a two-phase anaerobic digestion