AI bets pay off as Microsoft and Alphabet profits surge