Dimensional dependence of the Stokes–Einstein relation and its violation