A study of the reactions of C+ and O+ with carbon dioxide