Quantitative determination of carboxyl endgroups in vinyl polymers by the dye-interaction method