Microbial Fuel Cells: From Fundamentals to Wastewater Treatment Applications