How were many African Americans in the South affected after Reconstruction ended in 1877?