Who did the church retain the right to elect without interference from the state in its constitutional document?