Titration of a polyprotic acid