Composite hydrogels with antimicrobial nanoparticles