Time-to-space mapping in a gas medium for the temporal characterization of vacuum-ultraviolet pulses