Photonic devices based on hybrid organic-inorganic xerogel polymers