generalization of quaternions to other fields