The influence of the internal microstructure on the surface parameters of polycrystalline thin films