Photoinduced electron and energy transfer in a new porphyrin–phthalocyanine triad