what year and month did barack obama get elected?