The kinetics and mechanisms of the formation of metal complexes containing non-cyclic and macrocyclic ligands