A Criterion for the Onset of Chaos in Systems of Two Eccentric Planets