Excitons in cadmium iodide