What is the maximum value of the function \(f(x) = 2x^2 - 2x + 6\) in the interval \(\left[0,2 \right]\)? A6B10C12D5.5