Closed-form quaternion representations for rigid body rotation: application to error assessment in orientation algorithms of strapdown inertial navigation systems