Change of magnetic behaviour of nitrogenated carbon nanotubes on chlorination/oxidation