Text this: Ionic-electronic photodetector for vision assistance with in-sensor image processing