An automated method for the determination of pectic substances