Google Chief Apologizes for A.I. Researcher’s Dismissal