A real-time on-line photoelectrochemical sensor toward chemical oxygen demand determination based on field-effect transistor using an extended gate with 3D TiO2 nanotube arrays