Obtaining compounds having -COOH or -SO3H radicals, or derivatives thereof, directly bound to the phthalocyanine radical