Encapsulation of chemically sensitive field-effect transistors with photocurable epoxy resins