Synthesis of azaphthalocyanines, monitoring of their changes in dependence on basicity or acidity of medium