Text this: Mesoporous nanocomposite coatings for photonic devices: sol-gel approach