Theoretical aspects of bulk optode membranes