Studying the influence of chemical structure on the surface properties of polymer films