Homoclinic solutions for a class of relativistic Liénard equations