Biomaterials with antibacterial activity