Microsoft agrees to buy Skype for $8.5 billion