Observations of the plasma dynamics of a vacuum spark from its soft x-ray emission