Applied Materials Inc., the world’s largest maker of semiconductor fabrication equipment, unveiled plans yesterday to buy Varian Semiconductor Equipment Associates Inc. of Gloucester for $4.9 billion, making it the biggest local tech deal this year.