Global phase portraits of the quadratic systems having a singular and irreducible invariant curve of degree 3