It cost the equivalent of billions of dollars in today’s money, and left the US government crippled with debt. But how, exactly, did America pay for the Civil War?