Use method from NaturalPoint forum for quaternion to Euler calculation