Calculation of surface states using a one-dimensional scattering model