Numerical analysis of the effect of fast-ion losses on plasma rotation in a tokamak with toroidal field ripple