Geometrically constrained self-assembly and crystal packing of flattened and aligned carbon nanotubes