Pressure dependent stability and structure of carbon dioxide - A density functional study including long-range corrections