Numerical computation of chemisorption isotherms for device modeling of semiconductor gas sensors