Differentiability of solutions of the second order abstract Cauchy problem