Palladium mediated dehydrogenation in the photochemical cyclization of heterocyclic analogs of stilbene