Antifouling and antimicrobial coatings based on sol-gel films