A paramagnetic method for measuring the carbon dioxide concentration of a gas