Modified in situ and self-catalytic growth method for fabrication of Ag-coated nanocomposites with tailorable optical properties