Border changes and their effect on the structure of Hungarian society