Measuring and mapping long-term changes in migration flows using population-scale family tree data