Where was the state government located when Mexico City was declared the capital