Tightly coupled laser-inertial pose estimation and map building based on B-spline curves