On the possibility of elemental analysis of solid crystals by the X-ray diffraction method