Characterization and identification of potent biologically active compounds by spectroscopic x-ray diffraction method