Chemical field-effect transistor