McCarthy pitches Athletics to 5-2 win over Orioles