Numerical simulation of ion beam propagation in Z-pinch plasma channels