Quantification of solid-state impurity with powder X-ray diffraction using laboratory source