Fouling-resistant biofilter of an anaerobic electrochemical membrane reactor