</span><span class="n">n_k_TiO2</span><span class="p">[:,</span> <span class="mi">1</span><span class="p">]</span>  <span class="c1"># Combine n and k into a complex refractive index</span>
<span class="n">n_k_Ag</span> <span class="o">=</span> <span class="n">interpolate_material</span><span class="p">(</span><span class="n">Ag_data</span><span class="p">,</span> <span class="n">frequencies</span><span class="p">)</span>
<span class="n">n_Ag</span> <span class="o">=</span> <span class="n">n_k_Ag</span><spa