Electronic properties of semiconductor surfaces and interfaces: Selected results from green function studies