Photoaddition on conjugated dienes and photochemical allylic rearrangement