Who annexed territory formerly controlled by the Habsburgs and Savoys