A regularity theorem for minimizers of quasiconvex integrals