Resource conflict, collective action, and resilience: an analytical framework