Loneliness is the common ground of terror and extremism