Planar waveguide ion-selective sensors