Independent Scotland may have to reapply for EU membership