Optoelectronic properties and ultrafast carrier dynamics of copper iodide thin films