In what year did the Treaty of Berlin occur?