Knapsack Optimization-based Schema Linking for LLM-based Text-to-SQL Generation