A pH sensor with a double-gate silicon nanowire field-effect transistor