In the late Middle Ages, as the Ashkenazi population shifted it moved from what location