how is stress related to building resilience