Soft-x-ray interferometer for single-shot laser linewidth measurements