Structural transition of hexagonal tube to rocksalt for (MgO)3n, 2