Magnetic ring encoder for industrial applications