Pore-scale characterization of carbon dioxide storage at immiscible and near-miscible conditions in altered-wettability reservoir rocks