Conversion between Quaternions and Euler