Perturbations of quadratic Hamiltonian two-saddle cycles