JWST detects carbon dioxide in a centaur for the first time