A study on the acid-base properties of pectin and poly-galacturonic acid