Direct methods for the regularity in the Calculus of Variations