Preservation of C hexagons in the transformation of C allotropes