Treatment and control of feed and boiler water