Antibacterial nanostructured composite films for biomedical applications: microstructural characteristics, biocompatibility, and antibacterial mechanisms