Chemical removal of nitrate from water