Who was responsible for changing Prussia's internal borders?