Template-assisted encapsulation of fluorinated silanes in silica films for sustained hydrophobic-oleophobic functionality.