Orioles rally to beat Athletics 5-2