What was the primary economic activity in the Appalachian region during the 19th and early 20th centuries?