When tree planting actually damages ecosystems