Your Phone as a Ruler: Computational Methods for IMU Distance Measurement