Valence changes and core-level shifts of Sm adsorbed on Mo(110)