Broad revenue gains push Microsoft's Q3 profits up 31%