Optimized synthesis, characterization, and antibacterial activity of an alginate–cupric oxide bionanocomposite