Study of pH sensors based on TiO2 nanotubes