as i understand it , global warming is caused by an increase in so-called greenhouse gases , such as carbon dioxide , that trap heat in the earth 's atmosphere and prevent it from escaping into space .