Measuring cities' internal demographic change as the movement of emergent boundaries