Obtaining compounds having sulfur atoms directly bound to the phthalocyanine skeleton