Photochemistry of N-acetyl and N-benzoyl carbazoles: photo-Fries rearrangement and photoinduced single electron transfer