A non-linear least-squares approach to the refinement of all parameters involved in acid-base titrations.