Template synthesis and characterization of TiO2 nanotube arrays by the electrodeposition method