Who did Austria-Hungary war with over territory