Magneto-optic linear-displacement sensor with high spatial resolution and low noise