Orioles score four in seventh to beat A's 6-2