The war in Ukraine has sparked debates in Finland and Sweden over whether they should join the NATO military alliance.