Hamiltonian structure of rational isomonodromic deformation systems