Microsoft to buy Nokia's phone business