Investigation of Inhomogeneous Textures of Coatings and Near-Surface-Layers