Enamide Photocyclization and Its Application to the Synthesis of Heterocycles