X-ray Diffraction study of arcing phenomenon in polytypic crystal of cadmium iodide, lead iodide and cadmium bromide