A Mechanistic Explanation of the Peculiar Amphiphobic Properties of Hybrid Organic-Inorganic Coatings by Combining XPS Characterization and DFT Modeling.