Poland on war footing as it spends £2bn to shore up boarders