Synthesis of silver-anchored polyaniline–chitosan magnetic nanocomposite: a smart system for catalysis | Synapse