Coatings comprising at least one inhomogeneous layer consisting of a dispersed phase in a continuous phase characterized by the dispersed phase consisting of a specific material