Microsoft to buy AI and speech technology firm Nuance for $16bn