4-(3-Cyanopyridin-2-ylthio)acetoacetates in synthesis of heterocycles