Multiple critical points for asymptotically quadratic functionals