Get the average quaternion from a set of quaternions