Chapter 1 Fundamentals of the electronic structure of surfaces