Describe how John Adams handled foreign conflicts, including wars and the XYZ Affair. Was his foreign policy position different from George Washington's?