Underwater square-root cubature attitude estimator by use of quaternion-vector switching and geomagnetic field tensor