Surface states in a one-dimensional chain of atoms