Characterization of temporal coherence of hard X-ray free-electron laser pulses with single-shot interferograms. (2017)