Some peculiarities of metal exchange reactions in porphyrin and phthalocyanine complexes