Forests are contributing to global warming, new study says