Water treatment for cooling towers