Mutually exclusive cohesive and adhesive properties in the failure of thin coatings in sliding mode