X-ray diffraction from both threading and misfit dislocations calculated by means of Monte-Carlo method.