ipso-Substitution of a sulphinyl or sulphonyl group attached to pyridine rings and its application for the synthesis of macrocycles