Limit cycles and bifurcation from a separatrix for a polynomial Liénard system in the plane