Keyframe-based Direct Thermal-Inertial Odometry