Numerical continuation of families of heteroclinic connections between periodic orbits in a Hamiltonian system