Influence of the molecular structure on the quenching of triplet states of porphyrins by molecular oxygen