The roots of a generalized quaternion