Error analysis strapdown inertial navigation using quaternions