Bifurcation of critical points for continuous families of C2 functionals of Fredholm type