After the Texas war for independence, _______ remained a republic for 10 years befor it became a state