Nitriles in heterocyclic synthesis: new route for the synthesis of pyridine and pyrido[2,3-d]pyridazine derivatives