Magnesium Boride Nanotubes: Relative Stability and Atomic and Electronic Structure