Coatings comprising at least one inhomogeneous layer consisting of a dispersed phase in a continuous phase