Pontus was defeated in what wars?