Current shims for high-resolution nuclear magnetic resonance on the problem of correcting magnetic field inhomogeneities