X‐ray diffraction in a perfect crystal with disturbed surface layer