Silver nanoparticles for antibacterial and pharmaceutical applications