Intrinsic Magnetism in Single-Walled Carbon Nanotubes of Finite Length