X-ray diffraction in polymer science