Microbial electrochemical systems coupled with membrane for desalination and wastewater treatment