factor out quat_apply_relative_yaw_pitch_roll()