Immanent conditions determine imminent collapses: nutrient regimes define the resilience of macroalgal communities