how did the country change poltically economically and socially because of the civil war and reconstruction in the nintheent century