Regularity for minima of functionals with p-growth