Optical Sum-Frequency Response of Lattice Vibrations and Pulse Timing at a Free-Electron Laser