Affordable and Sustainable Water Recycling through Optimal Technology Integration