The structure of 1D CuI crystals inside SWNTs