How did the Federalists and Democratic-Republicans differ in their views of US relations with both Great Britain and France?