Global warming could turn forests from sink to source of carbon emissions