Enamide Cyclization and Its Application to the Synthesis of Heterocycles