Band terminations in valence-space and core-excited configurations in102Pd