Low-cost technologies for the treatment of municipal and domestic wastewater