Eco-friendly synthesis of silver nanoparticles from macroalgae: optimization, characterization and antimicrobial activity