What is the maximum possible value for the sum of the squares of the roots of \(x^4 + ax^3 + bx^2 + cx + d\) where \(a\), \(b\), \(c\), and \(d\) are \(2\), \(0\), \(1\), and \(7\) in some order?

Let's think step by step and output the final answer within \boxed{}.
user