Numerical simulations of particle sedimentation using the immersed boundary method