Two-spectra theorem with uncertainty