Inverse model of the glass pH sensor