Mechanistic studies of the photo-Fries reaction