Neutron-proton and neutron-deuteron total cross sections at 4.0 and 5.7 GeV/c