Antibacterial nanocoatings for ocular applications