Spin dynamics in the one-dimensional anisotropic magnets CsNiCl3 and CsNiF3☆