John Quincy Adams and the Foundations of American Foreign Policy