HTC to Buy Majority Stake in Beats Electronics