How does carbon dioxide contribute to the greenhouse effect?