Biosynthesis, optimization and toxicity of metallic nanoparticles with antimicrobial and antibiofilm activity for bacterial infections treatment