Phase portraits and invariant straight lines of cubic polynomial vector fields having a quadratic rational first integral