Structure and optical properties of the silver/polyacrylonitrile nanocomposites