Light-addressable potentiometric sensor