Linking corruption with institutional failure, terrorism, and religious extremism