Controlled release N-halamine polymers for water decontamination and detoxification