Diffraction analysis of layer disorder