What was the gender and ethnic diversity of farmers, miners, railroad workers, and ranchers in the west? How did this diversity contribute to growing cultural unrest in the growing cities?