after the civil war, most southern states passed laws that barred african americans and whites from sharing most kinds of public facilities. this is an example of