Potentiometric titration of polyacrylic and polymethacrylic acids with alkali metal and quaternary ammonium bases