Anomalous polytypic structures: investigation on cadmium iodide crystals