Sharp estimates for the derivatives of local minima of variational integrals