Rise of the Territorial State and the Treaty of Westphalia