Optical, electrical and catalytic properties of titania nanotubes