The state of California was admitted to the United States in 1850. In what year did San Diego officially become a city