Potential response of solid state potentiometric chemical sensors, theoretical approach and teaching experiment