Electron states of ultrathin Pd and Cu films on (001) Ag.