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