Microsoft announces 7,800 layoffs and will write down $7.6 billion from Nokia