Chemistry and function of pectins