Design of photonic structures by sol-gel-derived silica nanospheres