Why did San Diego lose its pueblo status in 1838