Glass-based nanocomposite materials and confined structures for photonics