Calculate the average rate of change for the function f(x) = −x4 + 4x3 − 2x2 + x + 1, from x = 0 to x = 1.