Energy-dispersive spectroscopic methods applied to X-ray diffraction in single crystals