Near-well effects in carbon dioxide storage in saline aquifers