How the type of anthropogenic change alters the consequences of ecological traps