How to calculate the degree of crystallinity using origin from XRD?