The fabrication of potentiometric membrane sensors and their applications