Self-organization as a mechanism of resilience in dryland ecosystems