Anaerobic Membrane Bioreactors for Municipal Wastewater Treatment, Sewage Sludge Digestion and Biogas Upgrading: A Review