Retrieval of interatomic separations of molecules from laser-induced high-order harmonic spectra