Membrane technology in wastewater treatment enhanced by functional nanomaterials