Emotional responses and perceived threats influence community resilience in extreme events