X-ray diffraction techniques for thin film materials