Measurement of a phonon-polariton dispersion curve by varying the excitation wavelength