Strong and weak minima of functionals in a real Hilbert space