Principles for building resilience in social-ecological systems