An integrated approach for material characterization by diffraction