Stokes-Einstein relation in two-and three-dimensional fluids