Symplectic integration of Hamiltonian systems