Techniques for 3D Misalignment Calculation for Portable Devices in Cycling Applications