Surface properties and electronic band structure of 2D materials and thin films