Structural and elastic properties of copper iodide