New routes to the v-triazolo[1,5-a]pyridine and pyrazolo[1,5-a]pyridine ring systems