Identity, religion, and the state: The origin of theocracy