why was the United States lucky in the timing of the California gold rush?