The role of Ag doping in the adjustment of the optical and dielectric properties of TiO2 particles