Famines in medieval Egypt: natural and man-made