An exploration of the psychological mechanisms associated with the resilience process of people who are homeless