Ljusternik-Schnirelmann theory and Conley index, a noncompact version