Unfolding neutron energy spectra from foil activation detector measurements with the Gold algorithm