Alphabet reports a rise in earnings as AI competition heats up