Synthesis of silver nanoparticles: a safer alternative to conventional antimicrobial and antibacterial agents