A viable green route to produce Ag nanoparticles for antibacterial and electrochemical supercapacitor applications