Analytical performance of an optical pH sensor for acid-base titration