Electrolytic detector