Hybrid organic–inorganic spin-on-glass CuCl films for optoelectronic applications