Formation process of carbyne produced by shock compression