Global phase portraits of quadratic systems with an ellipse and a straight line as invariant algebraic curves