Partial depolymerization of pectin by a photochemical reaction