Inelastic neutron scattering study of magnetic excitations in the helimagnetic and antiferromagnetic phases of NiBr2