Explain how the liberty of blacks gave way to legal segregation across the south after 1877. (i.e. the grandfather clause; literacy and understanding tests; poll taxes; violence and intimidation)