Modelling of Light-Addressable Potentiometric Sensors