XPS and UPS studies of the adsorption of small molecules on polycrystalline Ni films