Photoelectric work function measurements on nickel crystals and films