Electron spectroscopic investigations of the interaction of O and CO with clean and modified transition metal surfaces and of superconducting cuprates