Kinetic Monte Carlo simulations of 1D and 2D traffic flows: Nonlocal models with generalized look-ahead rules