Effect of microstructure of acrylic copolymer/terpolymer on the properties of silica based nanocomposites prepared by sol–gel technique