The newly independent states had constitutions that created what legislatures?