Socioeconomic reorganization of communication and mobility networks in response to external shocks