Method to convert quaternions to euler angles assuming that the roll stays close to 0. This applies to systems with 2 DoFs (yaw and pitch)