Diffusion and energy transfer in gases containing carbon dioxide