Defects at surfaces and interfaces — A scattering theoretical approach