North Carolina was the twelth state to ratify what document