X-ray diffraction techniques in the industrial laboratory