Cost Optimization of Nanofiltration with Fouling by Natural Organic Matter