Instability, investment, disasters, and demography: natural disasters and fertility in Italy (1820-1962) and Japan (1671-1965)