Influence of anisotropic vibrational motion on diffraction from grain boundaries