Design, prototyping, and assessment of a wastewater closed-loop recovery and purification system