Multiple critical points for indefinite functionals and applications