Band-gap tuning and nonlinear optical characterization of Ag:TiO2 nanocomposites