In-situ photoemission spectroscopy characterization of electronic states in semiconductor interfaces