how does carbon dioxide affect ph