Let \( [x] \) denote the greatest integer \( \leq x \). Consider the function \( f(x) = \max\{x^2,\, 1 + [x]\} \). Then the value of the integral \( \int_{0}^{2} f(x)\,dx \) is:
\( \frac{5 + 4\sqrt{2}}{3} \)
\( \frac{1 + 5\sqrt{2}}{3} \)
\( \frac{4 + 5\sqrt{2}}{3} \)
\( \frac{8 + 4\sqrt{2}}{3} \)