Terahertz, Infrared, and UV–Vis Spectroscopy Study on Silver@Polyaniline Core@Shell Nanocomposites: Optical and Electronic Properties