Dynamic Sensor Concept Combining Electrochemical pH Manipulation and Optical Sensing of Buffer Capacity.