A new neutron time-of-flight detector to measure the MeV neutron spectrum at the National Ignition Facility and its applications