Solid-state halide ion-selective electrodes: studies of quaternary ammonium halide solutions and determination of surfactants.