Bidirectional approach of β-cyclodextrin-capped silver nanoparticles: reduction in toxicity and enhancement in antibacterial activity