Mild halogenation of polyolefins using an N-haloamide reagent