Yankees acquire former 20-HR hitter in trade with AL team