LSI to buy Agere in $4b deal