Modeling Of Light-Addressable Potentiometric Sensors