Quartzlike carbon dioxide: An optically nonlinear extended solid at high pressures and temperatures