Resilience is a skill you can learn—here's how