Polish military take families with children to the border