One-step functionalization of gold and silver nanoparticles by ampicillin