Synthesis of cyanopyridine based conjugated polymer