Microsoft has agreed a deal to buy Nokia's mobile phone unit for 5.4 billion euros ($7.2 billion). Nokia will also…