X-ray diffraction and the deformation of metals