Mercury photosensitized extrusion reactions for the preparation of heterocycles