who was elected as the first african american president?