Photochemistry of polypyridine and porphyrin complexes