Core-level binding-energy shifts during metal adsorption and compound formation: Yb/Ni(100).