Synthesis and characterization of Ag/polyaniline core–shell nanocomposites based on silver nanoparticles colloid