Efficient synthesis of phthalocyanines and related macrocyclic compounds in the presence of organic bases