Neutron Energy-Dependent Capture Gamma-Ray Yields in Tantalum and Tungsten