Selective ipso-substitution in pyridine ring and its application for the synthesis of macrocylces containing both oxa- and thia-bridges