The discovery of X-ray diffraction