Preparation of alginate hydrogels containing silver nanoparticles: a facile approach for antibacterial applications