Imidazopyridine and pyrimidinopyridine systems from perfluorinated pyridine derivatives