How did the gold rush affect the population of California?