Combining sequestration of CO2 and exploitation of hydrocarbons by injecting CO2 or carbonated water in oil wells