StarIO: A Lightweight Inertial Odometry for Nonlinear Motion