Effective optical properties of the one-dimensional periodic structure of $$\hbox {TiO}_{{2}}$$TiO2 and $$\hbox {SiO}_{2 }$$SiO2 layers with a defect layer of nanocomposite consisting of silver nanoparticle and E7 liquid crystal