Acid-base pH titration simulation