X-ray diffraction studies of physically vapour-deposited coatings