Who moved from rural villages into towns, where they specialized in a particular trade and produced superior quality products?