Singlet Oxygen vs Electron Transfer in Sensitized Photooxygenation of Sulfur- and Nitrogen-Containing Compounds