Obtaining compounds having nitrogen atoms directly bound to the phthalocyanine skeleton