Existence of periodic solutions of Hamiltonian systems on almost every energy surface