The role of excited states in the photosensitized oxidation of substrates with dioxygen