Crystallinity of polymers by x-ray diffraction: a new fitting approach