Phase transformations of carbon under extreme energy action