Calculating the characteristics of neutron-deuteron and proton-deuteron systems in a two-body potential model