Moments of inertia of nuclei in the rare earth region: A relativistic versus nonrelativistic investigation