Optical Properties and Dimer Formation in Copper Phthalocyanine-Doped Sol-Gel Matrices