Performance evaluation of the Herschel/SPIRE imaging Fourier transform spectrometer through ground-based measurements