when did american civil war begin and end