When tree planting hurts the climate