Ligands with a porphyrin ring system or analogues thereof