Single-ion activity: Optical sensing vs. electrochemical sensing