X-IONet: Cross-Platform Inertial Odometry Network with Dual-Stage Attention