Enaminones as building blocks in heterocyclic synthesis: New syntheses of nicotinic acid and thienopyridine derivatives