Potentiometric water analysis