Existence, uniqueness, and nonexistence of limit cycles for a class of quadratic systems in the plane