Some carbon projects are actually harmful to climate; study shows how to avoid that