X-Ray diffraction and electron microscope studies of polytypism in cadmium iodide in relation to crystal growth