Magnesiation of pyridine N-oxides via iodine or bromine-magnesium exchange: a useful tool for functionalizing pyridine N-oxides.