Absorption and luminescence of photochromic CdI2: CuI