The electron affinity of tungsten