On the formation of semiconductor interfaces