Treatment of cooling water