MediaTek buys Analog Devices' assets for $350M