How biotic interactions structure species’ responses to perturbations