Nine years of martial law followed the defeat of the Confederacy. What is that period of time called?