GPTR: Gaussian Process Trajectory Representation for Continuous-Time Motion Estimation