The neural basis of resilience