Tailoring TiO2 finite nanotubes: Doping-induced modulation of electronic, optical, and hydrogen storage properties