The study of the structure of grain boundaries using diffraction techniques