how did the california gold rush affect the growth of california