Examination of the structure of sol-gel derived matrices for optoelectronic sensors