Singlet−singlet and triplet−triplet intramolecular transfer processes in a covalently linked porphyrin−phthalocyanine heterodimer