who served as the general of confederate forces during the civil war