Magnetic properties of phthalocyanine-based organometallic nanowire