Semidefinite representation of convex hulls of rational varieties