Periodic points of Hamiltonian surface diffeomorphisms