Origin of magnetism in undoped TiO2 nanotubes