What two rival armies worked together to defeat the Persians in 499 B.C?