Can it be used to measure displacement between two objects in downward or z direction. One object has magnets at precise locations 1 cm apart and one has electronics with this sensor passing by these magnets and this way determine the displacement in cm?