Purification and characterization of phthalocyanines