Utilization of thiazolylacetonitriles in the synthesis of thiophene, thiazole, pyrazolo[1,5-a]pyrimidine and pyrazolo [5,1-c]triazine derivatives