The impacts of silver nanoparticles on planktonic and biofilm bacteria