Nutrients and herbivores impact grassland stability across spatial scales through different pathways