Translating Constraints into QUBOs for the Quadratic Knapsack Problem