The social underpinnings of terrorism