Assessment of a COD analytical method based on the photoelectrocatalysis of a TiO2 nanotube array sensor