Weak minima of variational integrals