Microsoft earnings get boost from Xbox, Office sales