In-depth structural and morphological study of the polytypic compounds cadmium lodide and silicon carbide