Accelerated Gossip in Networks of Given Dimension using Jacobi Polynomial Iterations