A comparison of the theoretical and measured performance of the Herschel/SPIRE imaging Fourier transform spectrometer