For a mineral with several possible phases that can exist in its system, how to correspond the peaks accurately to one phase, especially for Monazite type minerals( Ce, Nd, Th,La, Pr, PO4). The XRD shows a main peak which correspond to phosphates of all the above mentioned Rare earths. Is there a way to decompose the diffractogram to analyse each and every peak in detail?