Application of microbial fuel cells in wastewater treatment