Investigation of lattice defects by means of X-rays. I. Tin