An X-ray photoelectron spectroscopic study of the electronic properties of ultrathin Ni films on Ru(0001) and Mo(110)