spanish conquest over portugal in the war of the oranges