A unified physicochemical description of the equilibria encountered in humic acid gels