On 17 April 1861, five days after the Confederate attack on Fort Sumter, the legislature voted to secede from the United States and joined the Confederacy. After leaving the Union, what nation did Virginia join