Cost-effective water purification