Thermal equilibrium of the intermacromolecular complexes of polycarboxylic acids realized by cooperative hydrogen bonding