Effects of petroleum-reservoir conditions on oil recovery by carbon dioxide injection