Effects of cluster trajectories on cluster-cluster aggregation: A comparison of linear and Brownian trajectories in two- and three-dimensional simulations