How does history shape a state’s foreign policy?