Factors governing the mechanism and efficiency of porphyrin-sensitized photooxidations in homogeneous solutions and organized media.