Microsoft quarterly earnings beat expectations