Chipmaker Analog Devices to buy Maxim Integrated in an all-stock deal worth $21B