Microsoft beats profit estimates on gains from cloud services