Title: The optical principles of the diffraction of X-rays