Direct growth of TiO2 nanotubes on transparent substrates and their resistive switching characteristics