The Demography of Shocks: Migration and Mortality under the Influence of Environmental and Epidemiological Shocks