Synthesis of one-dimensional structured metal phthalocyanine in an ionic liquid