Asymptotically periodic superquadratic Hamiltonian systems