Americans are tired of war: Robert Gates