The carbon X-ray spectrum of gaseous CO