Swift mission measures distance to star explosions