What was the emergence of the industrial base of North carolina based on?