Synthesis of magnetic polypyrrole modified sodium alginate nanocomposite with excellent antibacterial properties and optimization of dye removal performance using RSM