A continuation theorem with applications to periodically forced Liénard equations in the presence of a separatrix