Measurement of the fractional thermonuclear neutron yield during deuterium neutral-beam injection into deuterium plasmas