Functional Nanocomposite Surfaces for Antibacterial, Oil–Water Separation, and Optical Applications