On the use of a NaI(Tl) crystal detector for neutron capture cross section measurements