Existence and Regularity of Minimizers of Nonconvex Functionals Depending onuand ∇u