Investigation of the response of dye-nonaqueous solvent solutions to carbon dioxide