Study of the linear and nonlinear excitations in CsNiF3 by means of polarized neutron scattering