The membrane layer 24 can then be formed by using a polymer such as polyvinyl chloride which is loaded with a certain percentage of a well-known ion-exchanging material, such as valinomycin or calcium didecylphosphate respectively sensitive to potassium (K+) and calcium (Ca2+) ions.