The science behind fostering resilience