Google beats third-quarter earnings expectations on AI momentum