Japan to accept people fleeing war in Ukraine