A Spectroscopic Study of the Effects of Various Solvents and Sol-Gel Hosts on the Chemical and Photochemical Properties of Thionin and Nile Blue A