X-ray diffraction study of one-dimensional disorder in cadmum iodide crystals in relation to polytypism and crystal growth