how were the greeks able to defeat the persians?