Preparation and evaluation of optical properties of Ag: PANI nanocomposite