Synthesis of heterocycles by photochemical cyclization of ortho-substituted benzene derivatives