Numerical analysis of ISFET and LAPS devices