First-Principles Study of Carbon Nanotube Solid-State Packings