Material mass balance and elemental flow analysis in a submerged anaerobic membrane bioreactor for municipal wastewater treatment towards low-carbon operation and resource recovery.