Where did the agreements that gave Napoleon time to structure his empire take place