who were involved in the american civil war