who took part in the american civil war