Structured QR algorithms for Hamiltonian symmetric matrices