Theoretical treatment of the selectivity and detection limit of silver compound membrane electrodes