Ideology, Sects, State and Totalitarianism: A General Theory