Spectroscopic studies of polydiacetylene solutions and glasses