Photochemistry of porphyrins and their metal complexes in solution and organized media