Some Generic Properties of Non Degeneracy for Critical Points of Functionals and Applications