An algebraic equation for the steady-state response of enzyme-pH electrodes and field effect transistors