Relaxation shifts, satellites and sum rules in electron spectroscopies of adsorbed atoms