Electron states at a solid interface