Relationship of social capital, community identity, and perceived safety resilience during public emergencies in Shanghai | Synapse