Ctrl-VIO: Continuous-Time Visual-Inertial Odometry for Rolling Shutter Cameras